#include <stdio.h>
#include <stdlib.h>
int main()
{
    int least_common_multiple(int x, int y);
    int x, y, z;
    scanf("%d%d%d",&x,&y,&z);
    printf("%d\n",least_common_multiple(least_common_multiple(x,y),z));
    return 0;
}
int least_common_multiple(int x, int y)
{
    //start
    int t,a,b,c,n,m;
    if(x<y)
    {
        t=x;
        x=y;
        y=t;
    }
    a=x;
    b=y;
    while(y!=0)
    {
        c=x%y;
        x=y;
        y=c;
    }
    n=x;
    m=a*b/n;
    return m;
    //end
}
